<?php
class Zranknv extends AppModel {

	var $name = 'Zranknv';
	var $validate = array(
		'nhanvien_id' => array('numeric'),
		'manv' => array('notempty'),
		'tennv' => array('notempty'),
		'donvi_id' => array('numeric'),
		'hanghoa_id' => array('numeric'),
		'thoigian_id' => array('numeric'),
		'tenhh' => array('notempty'),
		'chitieunv_id' => array('numeric')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Nhanvien' => array(
			'className' => 'Nhanvien',
			'foreignKey' => 'nhanvien_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Donvi' => array(
			'className' => 'Donvi',
			'foreignKey' => 'donvi_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Hanghoa' => array(
			'className' => 'Hanghoa',
			'foreignKey' => 'hanghoa_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Thoigian' => array(
			'className' => 'Thoigian',
			'foreignKey' => 'thoigian_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Chitieunv' => array(
			'className' => 'Chitieunv',
			'foreignKey' => 'chitieunv_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>